package com.xhdx.pattern.command;
/**
 * 测试
 */
public class CommandDemo {

    public static void main(String[] args) {
        CommandExeReceiver receiver = new CommandExeReceiver();
        Enter invoker = new Enter(new CommandA(receiver), new CommandB(receiver));
        
        invoker.orderA();
        invoker.orderB();
    }

}
